<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>{if $title}{$title}{else}{if !empty($_W['account']['name'])}{$_W['account']['name']}{/if}{/if}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <!-- Mobile Devices Support @begin -->
    <meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type">
    <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
    <meta content="no-cache" http-equiv="pragma">
    <meta content="0" http-equiv="expires">
    <meta content="telephone=no, address=no" name="format-detection">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <meta name="apple-mobile-web-app-capable" content="yes" /> <!-- apple devices fullscreen -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <link type="text/css" rel="stylesheet" href="./themes/style59/style/index.css" />
    <script type="text/javascript" src="./themes/style59/script/jquery.js"></script>
    <script type="text/javascript" src="./themes/style59/script/jquery-1.2.6.pack.js"></script>
    <script type="text/javascript" src="./themes/style59/script/g.base.js"></script>
    <script type="text/javascript" src="./themes/style59/script/iscroll.js"></script>
    <script type="text/javascript" src="./themes/style59/script/alert.js"></script>
    <script type="text/javascript" src="./themes/style59/script/common.js"></script>
    <script type="text/javascript" src="./themes/default/script/swipe.js"></script>

</head>

<body>
<header>
    {template 'slide'}
<div data-role="content" class="content">
    <div class="container">

        {php $num=0;}
        {loop $navs $nav}

        {if $num==0}
        <div class="container_main_3" >
            <a href="{$nav['url']}" class="pic0">
                <div class="img1" style="background:url(./resource/attachment/{$nav["icon"]}) top center no-repeat; background-size:contain"></div>
                <div class="text1">{$nav['name']}</div>
            </a>
        </div>
        {/if}
        {if $num==1}
        <div class="container_main_4" >
            <a href="{$nav['url']}" data-role="none">
                <div class="img" style="background:url(./resource/attachment/{$nav["icon"]}) top center no-repeat; background-size:contain"></div>
                <div class="text">{$nav['name']}</div>
            </a>
        </div>
        {/if}
        {if $num>1 && $num<4}
            {if $num==2}<div class="container_main_1">{/if}

                <a href="{$nav['url']}" data-role="none">
                    <div class="img" style="background:url(./resource/attachment/{$nav["icon"]}) top center no-repeat; background-size:contain"></div>
                    <div class="text">{$nav['name']}</div>
                </a>

            {if $num==3}</div>{/if}
        {/if}
        {if $num>=4 && $num<6}
            {if $num==4}<div class="container_main_2">{/if}

                <a href="{$nav['url']}" data-role="none">
                   <div class="img" style="background:url(./resource/attachment/{$nav["icon"]}) top center no-repeat; background-size:contain"></div>
                   <div class="text">{$nav['name']}</div>
                </a>

            {if $num==5}</div>{/if}
        {/if}

        {php $num++;}
        {/loop}



    </div>
</div>

{template 'footer'}